#include<bits/stdc++.h>
using namespace std;
int n;
int a[100010];
bool vis[100010];
int cnt=0;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a[i];
    }
    sort(a+1,a+n+1);
    int j=2;
    for(int i=1;i<=n-1;i++){
        while(j<=n){
            if(a[j]>a[i]&&vis[j]==false){
                vis[j]=true;
                cnt++;
                j++;
                break;
            }j++;
        }
    }
    cout<<n-cnt;
    return 0;
}
